# Edge Runtime Types

The **@edge-runtime/types** package has the TypeScript global types for using Edge Runtime.

## Installation

```sh npm2yarn
npm install @edge-runtime/types
```

## Usage

If you need to have these types loaded as part of the global context, you can add them inside [tsconfig.json](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html):

```json
{
  "compilerOptions": {
    "types": ["@edge-runtime/types"]
  }
}
```

Alternatively, you can load them using [triple-slash directive](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html) as well:

```js
/// <reference types="@edge-runtime/types" />
```
